using Volo.Abp.Domain.Entities;

namespace WL.Think.Abp.Dto
{
    /// <summary>
    /// 令牌DTO
    /// </summary>
    [Serializable]
    public abstract class BaseConcurrencyDto: BaseDto,IHasConcurrencyStamp
    {
        /// <summary>
        /// 并发令牌，当DTO包含这个令牌属性时，那么该属性就必须要由前端传递过来，否则会产生并发异常
        /// </summary>
        public virtual string ConcurrencyStamp { get; set; }

        protected BaseConcurrencyDto()
        {
            ConcurrencyStamp = Guid.NewGuid().ToString("N");
        }
    }
}
